<style type="text/css">
.text_div{
    padding-top: 5px;
}
</style>
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">用戶頭像:</label>
        <div class="col-xs-12 col-sm-8">
                <ul class="row list-inline faupload-preview" id="p-images">
                    <li class="li_div">
                        <div class="li_div">
                            <a href="{$user.avatar|htmlentities}" target="_blank" class="thumbnail">
                                <img src="{$user.avatar|htmlentities}" class="img-responsive">
                            </a>
                        </div>
                    </li>
                </ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">用戶名:</label>
            <div class="col-xs-12 col-sm-8">
                <div class="text_div">{$user.nickname|htmlentities}</div>
            </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mobile" class="form-control" name="row[mobile]" type="text" value="{$row.mobile|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sex')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-sex" class="form-control selectpicker" name="row[sex]">
                {foreach name="sexList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.sex"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">香港身份證前綴:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-id_card_front" class="form-control" name="row[id_card_front]" type="text" value="{$row.id_card_front|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Id_card')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-id_card" class="form-control" name="row[id_card]" type="text" value="{$row.id_card|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">香港身份證後綴:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-id_card_after" class="form-control" name="row[id_card_after]" type="text" value="{$row.id_card_after|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Birthday')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-birthday" name="row[birthday]"  class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" type="text" value="{:$row.birthday?datetime($row.birthday):''}" >
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Activity_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-activity_id" data-rule="required" data-source="activity/indexs" class="form-control selectpage" data-field="title"
 name="row[activity_id]" type="text" value="{$row.activity_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cat_id')}:</label>
            <div class="col-xs-12 col-sm-8">
                <div class="text_div">{$activitycategory_name|htmlentities}</div>
            </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
